package com.xquant.common.core.utils;

import com.xquant.common.core.domain.ErrMsg;
import com.xquant.common.core.utils.bean.BeanUtils;

/**
 * @author: zip.li
 * @date: Created in 2022/10/28 9:56
 * @Description:
 */
public class SummitMsgBuilder {
    public static ErrMsg BuilderMsg(ErrMsg errMsg, int column) {
        ErrMsg writeMsgErr = new ErrMsg();
        writeMsgErr.setErrMsg(errMsg.getErrMsg());
        writeMsgErr.setErrCode(errMsg.getErrCode());
        writeMsgErr.setErrMsg(writeMsgErr.getErrMsg() + ",位于" +column+ "列");
        return writeMsgErr;
    }

    public static ErrMsg BuilderMsg(ErrMsg errMsg, String msg) {
        ErrMsg writeMsgErr = new ErrMsg();
        writeMsgErr.setErrMsg(errMsg.getErrMsg() + msg);
        writeMsgErr.setErrCode(errMsg.getErrCode());
        return writeMsgErr;
    }
}
